<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- 
	This xslt sheet formats the user's global input into html.  An associated
    css style sheet adds some flavor.

   $Rev:: 78                                            $:Rev of last commit
   $Author:: bert                                       $:Author of last commit
   $Date:: 2011-02-13 20:06:52 -0500 (Sun, 13 Feb 2011) $:Date of last commit
-->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- the main stylesheet -->
<xsl:template match="/">
  <html>
  <!-- want a css style sheet here -->

  <head>
    <title>SERMENT---GLOBAL INPUT</title>
    <link rel="stylesheet" type="text/css" href="GlobalInput.css"/> 
  </head>
  <body>

  <xsl:for-each select="globalinput">
  <h2>Global Problem: <xsl:value-of select="name"/> </h2>
  <table>

    <xsl:for-each select="globalcontrol">
        <tr>
            <td colspan="2"><h3>Global Control</h3></td>
        </tr>
        <tr>
          <th>Parameter</th>
          <th>Value</th>
        </tr>
        <tr><td>rfsource</td>   <td><xsl:value-of select="rfsource"/></td></tr>
        <tr><td>rfsin</td>      <td><xsl:value-of select="rfsink"/></td></tr>
        <tr><td>rffile</td>     <td><xsl:value-of select="rffile"/></td></tr>
        <tr><td>dbfile</td>     <td><xsl:value-of select="dbfile"/></td></tr>
        <tr><td>epsk</td>       <td><xsl:value-of select="epsk"/></td></tr>
        <tr><td>epss</td>       <td><xsl:value-of select="epss"/></td></tr>
        <tr><td>maxit</td>      <td><xsl:value-of select="maxit"/></td></tr>
        <tr><td>keff</td>       <td><xsl:value-of select="keff"/></td></tr>
        <tr><td>numtypes</td>   <td><xsl:value-of select="numtypes"/></td></tr>
        <tr><td>numel</td>      <td><xsl:value-of select="numel"/></td></tr>
        <tr><td>numgroups</td>  <td><xsl:value-of select="numgroups"/></td></tr>
        <tr><td>spaceord</td>   <td><xsl:value-of select="spaceord"/></td></tr>
        <tr><td>angleord</td>   <td><xsl:value-of select="angleord"/></td></tr>
        <tr><td>faces</td>      <td><xsl:value-of select="faces"/></td></tr>
    </xsl:for-each>

    <xsl:for-each select="globaloutput">
        <tr>
            <td colspan="2"><h3>Global Output</h3></td>
        </tr>
        <tr>
          <th>Parameter</th>
          <th>Value</th>
        </tr>
        <tr><td>printout</td>   <td><xsl:value-of select="printout"/></td></tr>
        <tr><td>plotout</td>      <td><xsl:value-of select="plotout"/></td></tr>
        <tr><td>outfile</td>     <td><xsl:value-of select="outfile"/></td></tr>
        <tr><td>fluxfile</td>     <td><xsl:value-of select="fluxfile"/></td></tr>
    </xsl:for-each>

    <xsl:for-each select="globalgeometry">
        <tr>
            <td colspan="2"><h3>Global Geometry</h3></td>
        </tr>
        <tr>
          <th>Parameter</th>
          <th>Value</th>
        </tr>
        <tr><td>bcl</td>     <td><xsl:value-of select="bcl"/></td></tr>
        <tr><td>bcr</td>     <td><xsl:value-of select="bcr"/></td></tr>
        <tr><td>bct</td>     <td><xsl:value-of select="bcb"/></td></tr>
        <tr><td>bcr</td>     <td><xsl:value-of select="bct"/></td></tr>
        <tr><td>elemx</td>   <td><xsl:value-of select="elemx"/></td></tr>
        <tr><td>elemy</td>   <td><xsl:value-of select="elemy"/></td></tr>
        <tr><td>elemz</td>   <td><xsl:value-of select="elemz"/></td></tr>
        <tr>
        <xsl:for-each select="zplane">
            <tr>
            Plane <xsl:value-of select="number"/> = <br></br>
            <xsl:for-each select="r">
                <td class="column">
                <xsl:for-each select="c">
                    <xsl:value-of select="."/><br></br>
                </xsl:for-each>         
                </td>       
            </xsl:for-each>
            </tr>
        </xsl:for-each>
        </tr>
    </xsl:for-each>


  </table>
  </xsl:for-each>

  Questions? Email <a mailto="robertsj@mit.edu">J. Roberts</a>.

  </body>
  </html>

</xsl:template>

</xsl:stylesheet>
